﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace MVCExtension.FrameWork
{
    public class MasterHelper
    {
        /// <summary>
        /// 判断用户是否登陆系统
        /// </summary>
        public static Boolean IsLogin
        {
           
            get { return System.Web.HttpContext.Current.User.Identity.IsAuthenticated; }
        }

        /// <summary>
        /// 登录用户ID,每次登陆随机产生，MD5加密后保存
        /// </summary>
        public static string LoginID { get; set; }

        /// <summary>
        /// 登陆用户昵称
        /// </summary>
        public static string NickName{get;set;}
         

        /// <summary>
        /// 用户角色ID
        /// </summary>
        public static string UserRoleID { get; set; }


        /// <summary>
        /// 登陆用户进行操作记录ID,组织架构的ID
        /// </summary>
        public static string UserDepartmentID { get; set; }



         
        /// <summary>
        /// 设置用户登录IP
        /// </summary>
        public static String LoginIP { get; set; }
    }
}
